<template>
	<view class="tui-tips">
		<view class="tui-tips-btn" hover-class="active" @click="top">
			上
		</view>
		<view class="tui-tips-btn" hover-class="active" @click="center">
			中
		</view>
		<view class="tui-tips-btn" hover-class="active" @click="bottom">
			下
		</view>
		
		
		<tip></tip>
	</view>
	
</template>

<script>
	export default{
		data(){
			return{
				
			}
		},
		methods:{
			top(){
				this.$tip("上",1,'aquamarine')
			},
			center(){
				this.$tip("中")
			},
			bottom(){
				this.$tip("下",3,"red")
			}
		}
	}
</script>

<style>
	.tui-tips{
		padding: 0 30rpx;
		padding-top: 20rpx;
	}
	.tui-tips-btn{
		background: #6bb7f8;
		border-radius: 20rpx;
		height: 70rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		color: #FFFFFF;
		margin-bottom: 20rpx;
	}
	.active{
		background: #999999;
	}
</style>
